@import '../../var.less';

.box {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.recordIcon {
  font-size: 16px;
  margin-right: 4px;
}

.resultHeader {
  flex-shrink: 0;
  overflow-x: scroll;
  padding: 0px 10px;
  background-color: var(--color-bg-300);
  border-bottom: 1px solid var(--color-border);

  &::-webkit-scrollbar {
    display: none;
  }

  & ::after {
    height: 0px !important;
  }

  .statusIcon {
    margin-right: 4px;
    font-size: 12px;
  }

  .successIcon {
    color: rgb(71, 157, 255);
  }

  .failIcon {
    color: red;
  }
}

.resultContent {
  flex: 1;
  width: 100%;
  position: relative;
  overflow: auto;
}

.tableStatus {
  display: flex;
  align-items: center;
  .dot {
    display: inline-block;
    margin-right: 5px;
    width: 10px;
    height: 10px;
    background-color: #ff4d4f;
    border-radius: 50%;
  }
  .successDot {
    background-color: #52c41a;
  }
}

.tableBox {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  opacity: 0;
  overflow: auto;
  background-color: var(--color-bg-100);
}

.cursorTableBox {
  z-index: 1;
  opacity: 1;
}

.tableIndex {
  width: 50px;
}

.tableHoverBox {
  display: none;
  align-items: center;
  position: absolute;
  background-color: var(--color-bg-200);
  top: 0;
  right: 0;
  bottom: 0;
  i {
    font-size: 15px;
    margin: 0px 2px;
  }
  i:hover {
    color: var(--custom-primary-color);
  }
}

.monacoEditor {
  height: 300px;
}

.tableItem {
  width: 100%;
  .f-lines(1);
  cursor: pointer;
  &:hover .tableHoverBox {
    display: flex;
  }
}
